﻿namespace Sidvall.LogManager.Workflow
{
    public class LogTargetCollection : System.Collections.ObjectModel.Collection<LogTarget>
    {
        public LogTarget Add(string connectionString, long? logScopeId, int? dayCount)
        {
            var item = new LogTarget()
            {
                ConnectionString = connectionString,
                LogScopeId = logScopeId,
                DayCount = dayCount,
            };
            Add(item);
            return item;
        }
    }
}
